package com.github.catvod.spider;

import android.content.Context;
import android.text.TextUtils;
import com.github.catvod.crawler.Spider;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0013;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.fP;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class JianPian extends Spider {

    /* renamed from: short, reason: not valid java name */
    private static final short[] f28short = {2039, 2027, 2027, 2031, 1957, 1968, 1968, 1963, 1965, 1969, 1966, 1958, 1963, 1969, 1965, 1964, 1962, 1969, 1966, 1960, 1957, 1965, 1967, 1967, 1967, 1967, 2153, 2159, 2169, 2158, 2097, 2173, 2171, 2169, 2162, 2152, 513, 566, 565, 566, 545, 566, 545, 2840, 2820, 2820, 2816, 2890, 2911, 2911, 2884, 2882, 2910, 2881, 2889, 2884, 2910, 2882, 2883, 2885, 2910, 2881, 2887, 2890, 2882, 2880, 2880, 2880, 2880, 1858, 1880, 1865, 1885, 1884, 1856, 1645, 1652, 1649, 1633, 1590, 1645, 1582, 1583, 1623, 1618, 1615, 1633, 1612, 1615, 1661, 1659, 1620, 1612, 1647, 1646, 1581, 1650, 1612, 1644, 1615, 1635, 1609, 1612, 1645, 1659, 1653, 1620, 1614, 1619, 1633, 1650, 1623, 1654, 1651, 1621, 1641, 1622, 1655, 1647, 1122, 1068, 1085, 1060, 1122, 1071, 1081, 1122, 1057, 1060, 1086, 1081, 1138, 1066, 1064, 1059, 1064, 1087, 1064, 1042, 1060, 1065, 1131, 1058, 1087, 1065, 1064, 1087, 1131, 1057, 1068, 1059, 1066, 1131, 1062, 1064, 1076, 1082, 1058, 1087, 1065, 1086, 1131, 1070, 1058, 1065, 1064, 1136, 1080, 1059, 1062, 1059, 1058, 1082, 1059, 1065, 1068, 1140, 1067, 1149, 1146, 1068, 1147, 1147, 1141, 1144, 1144, 1067, 1140, 1147, 1147, 1131, 1070, 1068, 1081, 1064, 1066, 1058, 1087, 1076, 1042, 1060, 1065, 1136, 1911, 1853, 1848, 1852, 1848, 1829, 1900, 1891, 1893, 1911, 1842, 1849, 1840, 1855, 1855, 1844, 1853, 1900, 1830, 1840, 1855, 1845, 1854, 1828, 1851, 1848, 1840, 1911, 1825, 1840, 1846, 1844, 1900, 2608, 2661, 2681, 2660, 2658, 2603, 2659, 2662, 2674, 2679, 2658, 2675, 820, 817, 804, 817, 2540, 2549, 2558, 2501, 2547, 2558, 2336, 2349, 565, 556, 551, 540, 557, 546, 558, 550, 2040, 2021, 2040, 2016, 2025, 390, 415, 404, 431, 384, 409, 403, 1592, 1596, 1584, 1590, 1588, 1570, 2725, 2746, 2726, 2721, 2736, 2727, 1480, 1489, 1498, 1505, 1484, 1499, 1491, 1503, 1484, 1493, 1485, 1075, 1062, 1087, 1061, 1081, 1074, 1075, 1061, 1033, 1077, 1081, 1059, 1080, 1058, 1867, 1882, 1884, 1886, 481, 496, 502, 500, 498, 510, 484, 511, 485, 2775, 2770, 2774, 2770, 2767, 1402, 1377, 1402, 1391, 1378, 2794, 2799, 2805, 2802, 1569, 1582, 1570, 1578, 825, 804, 825, 801, 808, 1009, 959, 942, 951, 1009, 944, 945, 954, 955, 1009, 954, 955, 938, 959, 951, 946, 993, 938, 945, 949, 955, 944, 995, 1016, 951, 954, 995, 2172, 2169, 2156, 2169, 384, 409, 402, 425, 415, 402, 315, 310, 1625, 1600, 1611, 1648, 1601, 1614, 1602, 1610, 1752, 1729, 1738, 1777, 1758, 1735, 1741, 1003, 1015, 1002, 1010, 1021, 1009, 1022, 1014, 1011, 704, 717, 708, 721, 747, 730, 725, 729, 721, 463, 450, 459, 478, 456, 3272, 3281, 3290, 3297, 3271, 3291, 3295, 3276, 3318, 3306, 3310, 3325, 3162, 3139, 3144, 3187, 3149, 3166, 3145, 3149, 2238, 2221, 2234, 2238, 950, 943, 932, 927, 946, 933, 941, 929, 946, 939, 947, 1839, 1850, 1827, 1849, 1829, 1838, 1839, 1849, 1813, 1833, 1829, 1855, 1828, 1854, 1345, 1368, 1363, 1384, 1366, 1364, 1347, 1368, 1349, 683, 681, 702, 677, 696, 697, 2492, 2469, 2478, 2453, 2478, 2467, 2488, 2479, 2473, 2494, 2469, 2488, 632, 629, 622, 633, 639, 616, 627, 622, 623, 690, 683, 672, 667, 679, 683, 682, 688, 673, 682, 688, 2393, 2392, 2382, 2398, 2383, 2388, 2381, 2377, 2388, 2386, 2387, 854, 832, 854, 859, 875, 848, 859, 835, 858, 856, 861, 839, 832, 778, 781, 787, 2993, 552, 1424, 1417, 1410, 1465, 1430, 1418, 1415, 1439, 1465, 1408, 1428, 1417, 1419, 2643, 2672, 2680, 2679, 2633, 2672, 2680, 2679, 259, 282, 273, 298, 261, 281, 276, 268, 298, 256, 263, 281, 517, 512, 538, 541, 1012, 980, 909, 987, 982, 991, 970, 1008, 966, 971, 909, 917, 909, 926, 909, 899, 909, 987, 982, 991, 970, 1008, 961, 974, 962, 970, 909, 917, 909, 25775, 26143, 30362, 23774, 909, 978, 899, 980, 909, 987, 982, 991, 970, 1008, 966, 971, 909, 917, 909, 925, 909, 899, 909, 987, 982, 991, 970, 1008, 961, 974, 962, 970, 909, 917, 909, 25775, 26143, 30362, -30103, 20936, 909, 978, 899, 980, 909, 987, 982, 991, 970, 1008, 966, 971, 909, 917, 909, 922, 909, 899, 909, 987, 982, 991, 970, 1008, 961, 974, 962, 970, 909, 917, 909, 29506, -27065, 30362, 23774, 909, 978, 899, 980, 909, 987, 982, 991, 970, 1008, 966, 971, 909, 917, 909, 921, 909, 899, 909, 987, 982, 991, 970, 1008, 961, 974, 962, 970, 909, 917, 909, 29506, -27065, 30362, -30103, 20936, 909, 978, 899, 980, 909, 987, 982, 991, 970, 1008, 966, 971, 909, 917, 909, 925, 920, 909, 899, 909, 987, 982, 991, 970, 1008, 961, 974, 962, 970, 909, 917, 909, 29506, -27065, 32083, -32299, 909, 978, 899, 980, 909, 987, 982, 991, 970, 1008, 966, 971, 909, 917, 909, 925, 921, 909, 899, 909, 987, 982, 991, 970, 1008, 961, 974, 962, 970, 909, 917, 909, 29506, -27065, 20743, 27780, 909, 978, 899, 980, 909, 987, 982, 991, 970, 1008, 966, 971, 909, 917, 909, 918, 909, 899, 909, 987, 982, 991, 970, 1008, 961, 974, 962, 970, 909, 917, 909, 24510, 21136, 25775, 29086, 909, 978, 899, 980, 909, 987, 982, 991, 970, 1008, 966, 971, 909, 917, 909, 926, 927, 909, 899, 909, 987, 982, 991, 970, 1008, 961, 974, 962, 970, 909, 917, 909, 26186, -27578, 20936, 909, 978, 899, 980, 909, 987, 982, 991, 970, 1008, 966, 971, 909, 917, 909, 926, 926, 909, 899, 909, 987, 982, 991, 970, 1008, 961, 974, 962, 970, 909, 917, 909, 26760, 31777, 20936, 909, 978, 1010, 862, 849, 860, 846, 846, 613, 555, 570, 547, 613, 558, 563, 542, 555, 557, 613, 574, 555, 557, 629, 553, 549, 558, 559, 631, 575, 548, 545, 548, 549, 573, 548, 558, 555, 627, 556, 634, 637, 555, 636, 636, 626, 639, 639, 556, 627, 636, 636, 620, 553, 546, 555, 548, 548, 559, 550, 631, 573, 555, 548, 558, 549, 575, 544, 547, 555, 620, 574, 555, 557, 631, 635, 620, 570, 555, 557, 559, 631, 635, 2464, 2469, 2480, 2469, 2842, 2819, 2824, 2867, 2821, 
    2824, 1354, 1351, 1898, 1907, 1912, 1859, 1906, 1917, 1905, 1913, 3191, 3178, 3191, 3183, 3174, 2925, 2932, 2943, 2884, 2923, 2930, 2936, 1595, 1578, 1599, 1571, 1028, 1053, 1046, 1069, 1024, 1047, 1055, 1043, 1024, 1049, 1025, 1787, 1771, 1767, 1786, 1773, 591, 586, 592, 599, 2382, 2399, 2380, 2381, 2395, 2609, 2605, 2592, 2616, 2580, 2611, 2605, 2339, 2340, 2362, 2649, 2583, 2566, 2591, 2649, 2560, 2591, 2578, 2579, 2585, 2649, 2565, 2579, 2583, 2564, 2581, 2590, 2633, 2589, 2579, 2575, 2635, 2814, 2728, 2745, 2751, 2749, 2789, 2793, 2831, 2826, 2847, 2826, 1672, 1681, 1690, 1697, 1687, 1690, 1502, 1491, 1483, 1490, 1497, 1506, 1491, 1500, 1488, 1496, 2969, 2948, 2969, 2945, 2952, 1657, 1632, 1643, 1616, 1663, 1638, 1644, 1301, 1289, 1300, 1292, 1283, 1295, 1280, 1288, 1293, 2995, 2986, 2977, 2970, 2999, 2976, 2984, 2980, 2999, 2990, 2998, 2760, 2756, 2774, 2766, 2165, 2160, 2154, 2157};
    private PushAgent j;
    private String h = C0008.m27(f28short, 0, 26, 1951);
    private String V0 = "";

    public JianPian() {
        int m16 = C0005.m16();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m16 >= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Integer.valueOf(C0001.m5("SNrWqHyl4RaT9mt4rAE36yjXJUYd")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:48:0x0083, code lost:
    
        return r3;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    private java.util.HashMap<java.lang.String, java.lang.String> h(java.lang.String r8) {
        /*
            r7 = this;
            r6 = 26
            r0 = 0
            java.lang.String r1 = "ۨ۟ۢ"
            r2 = r0
            r3 = r0
            r4 = r1
            r1 = r0
        L9:
            int r4 = com.github.catvod.parser.C0006.m20(r4)
            switch(r4) {
                case 56356: goto L1b;
                case 1746812: goto L37;
                case 1747775: goto L83;
                case 1748706: goto L4a;
                case 1749756: goto L32;
                case 1749851: goto L16;
                case 1750531: goto L55;
                case 1750661: goto L7e;
                case 1750719: goto L27;
                case 1750726: goto L5f;
                case 1753543: goto L6c;
                case 1755339: goto L42;
                case 1755398: goto L5a;
                case 1755399: goto L78;
                case 1755618: goto L50;
                default: goto L10;
            }
        L10:
            r3.put(r0, r2)
            java.lang.String r4 = "ۣ۠ۢ"
            goto L9
        L16:
            short[] r1 = com.github.catvod.spider.JianPian.f28short
            java.lang.String r4 = "ۣ۟۠"
            goto L9
        L1b:
            r0 = 69
            r4 = 6
            r5 = 1800(0x708, float:2.522E-42)
            java.lang.String r0 = com.github.catvod.parser.C0005.m17(r1, r0, r4, r5)
            java.lang.String r4 = "ۣ۟۟"
            goto L9
        L27:
            r2 = 43
            r4 = 2928(0xb70, float:4.103E-42)
            java.lang.String r2 = com.github.catvod.parser.C0000.m1(r1, r2, r6, r4)
            java.lang.String r4 = "ۨۡ۠"
            goto L9
        L32:
            java.lang.String r2 = r7.V0
            java.lang.String r4 = "ۢۨۡ"
            goto L9
        L37:
            r0 = 10
            r4 = 2076(0x81c, float:2.909E-42)
            java.lang.String r0 = com.github.catvod.parser.C0008.m27(r1, r6, r0, r4)
            java.lang.String r4 = "ۣۡۢ"
            goto L9
        L42:
            java.util.HashMap r3 = new java.util.HashMap
            r3.<init>()
            java.lang.String r4 = "ۢۥ۟"
            goto L9
        L4a:
            r3.put(r0, r2)
            java.lang.String r4 = "ۣۣۥ"
            goto L9
        L50:
            short[] r1 = com.github.catvod.spider.JianPian.f28short
            java.lang.String r4 = "ۡۥ"
            goto L9
        L55:
            short[] r1 = com.github.catvod.spider.JianPian.f28short
            java.lang.String r4 = "ۣۥۨ"
            goto L9
        L5a:
            short[] r1 = com.github.catvod.spider.JianPian.f28short
            java.lang.String r4 = "ۣۥۡ"
            goto L9
        L5f:
            r2 = 75
            r4 = 44
            r5 = 1561(0x619, float:2.187E-42)
            java.lang.String r2 = com.github.catvod.spider.merge.C0012.m37(r1, r2, r4, r5)
            java.lang.String r4 = "ۤۤ"
            goto L9
        L6c:
            r0 = 36
            r4 = 7
            r5 = 595(0x253, float:8.34E-43)
            java.lang.String r0 = com.github.catvod.parser.C0007.m26(r1, r0, r4, r5)
            java.lang.String r4 = "ۨۡ۟"
            goto L9
        L78:
            r3.put(r0, r2)
            java.lang.String r4 = "ۨۨۢ"
            goto L9
        L7e:
            short[] r1 = com.github.catvod.spider.JianPian.f28short
            java.lang.String r4 = "ۦۣۤ"
            goto L9
        L83:
            return r3
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.JianPian.h(java.lang.String):java.util.HashMap");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:5:0x0071. Please report as an issue. */
    public String categoryContent(String str, String str2, boolean z, HashMap<String, String> hashMap) {
        try {
            JSONObject jSONObject = new JSONObject();
            String str3 = this.h + C0015.m47(f28short, 119, 84, 1101) + str + C0008.m27(f28short, 203, 33, 1873) + str2 + C0005.m17(f28short, 236, 12, 2582);
            JSONArray jSONArray = new JSONObject(fP.oq(str3, h(str3))).getJSONArray(C0004.m12(f28short, 248, 4, 848));
            JSONArray jSONArray2 = new JSONArray();
            int i = 0;
            while (true) {
                int length = jSONArray.length();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < length ? 1709 : 1678;
                        case 204:
                            JSONObject jSONObject2 = jSONArray.getJSONObject(i);
                            JSONObject jSONObject3 = new JSONObject();
                            jSONObject3.put(C0008.m27(f28short, 252, 6, 2458), jSONObject2.getString(C0001.m3(f28short, 258, 2, 2377)));
                            jSONObject3.put(C0014.m43(f28short, 260, 8, 579), jSONObject2.getString(C0002.m6(f28short, 268, 5, 1932)));
                            jSONObject3.put(C0006.m18(f28short, 273, 7, 496), jSONObject2.getJSONObject(C0004.m12(f28short, 280, 6, 1617)).getString(C0001.m3(f28short, 286, 6, 2773)));
                            jSONObject3.put(C0004.m12(f28short, 292, 11, 1470), jSONObject2.getString(C0011.m35(f28short, 303, 14, 1110)));
                            jSONArray2.put(jSONObject3);
                            i++;
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = 1771;
                                        break;
                                    case 54:
                                        break;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    jSONObject.put(C0000.m1(f28short, 317, 4, 1851), str2);
                    jSONObject.put(C0017.m52(f28short, 321, 9, 401), 20);
                    jSONObject.put(C0007.m26(f28short, 330, 5, 2747), 24);
                    jSONObject.put(C0011.m35(f28short, 335, 5, 1294), 500);
                    jSONObject.put(C0008.m27(f28short, 340, 4, 2694), jSONArray2);
                    return jSONObject.toString();
                }
            }
        } catch (Throwable th) {
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x01e0. Please report as an issue. */
    public String detailContent(List<String> list) {
        int i = 0;
        String m56 = C0018.m56(f28short, 344, 4, 1615);
        String m52 = C0017.m52(f28short, 348, 5, 845);
        try {
            Init.getPackage();
            ArrayList arrayList = new ArrayList();
            JSONObject jSONObject = new JSONObject();
            JSONObject jSONObject2 = new JSONObject();
            String str = this.h + C0003.m9(f28short, 353, 27, 990) + list.get(0);
            System.out.println(str);
            JSONObject jSONObject3 = new JSONObject(fP.oq(str, h(str))).getJSONObject(C0008.m27(f28short, 380, 4, 2072));
            jSONObject.put(C0015.m47(f28short, 384, 6, 502), jSONObject3.getString(C0014.m43(f28short, 390, 2, 338)));
            jSONObject.put(C0013.m41(f28short, 392, 8, 1583), jSONObject3.getString(m52));
            jSONObject.put(C0003.m9(f28short, 400, 7, 1710), jSONObject3.getString(C0001.m3(f28short, 407, 9, 927)));
            jSONObject.put(C0000.m1(f28short, 416, 9, 692), jSONObject3.getJSONArray(C0018.m56(f28short, 425, 5, 443)).getJSONObject(0).getString(m56));
            jSONObject.put(C0007.m26(f28short, 430, 8, 3262), jSONObject3.getJSONObject(C0004.m12(f28short, 438, 4, 3215)).getString(m52));
            jSONObject.put(C0002.m6(f28short, 442, 8, 3116), jSONObject3.getJSONObject(C0000.m1(f28short, 450, 4, 2271)).getString(m52));
            jSONObject.put(C0004.m12(f28short, 454, 11, 960), jSONObject3.getString(C0007.m26(f28short, 465, 14, 1866)));
            jSONObject.put(C0001.m3(f28short, 479, 9, 1335), jSONObject3.getJSONArray(C0004.m12(f28short, 488, 6, 714)).getJSONObject(0).getString(m56));
            jSONObject.put(C0006.m18(f28short, 494, 12, 2506), jSONObject3.getJSONArray(C0002.m6(f28short, 506, 9, 540)).getJSONObject(0).getString(m56));
            jSONObject.put(C0008.m27(f28short, 515, 11, 708), "" + jSONObject3.getString(C0006.m18(f28short, 526, 11, 2365)));
            JSONArray jSONArray = jSONObject3.getJSONArray(C0008.m27(f28short, 537, 13, 820));
            while (true) {
                int length = jSONArray.length();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < length ? 1709 : 1678;
                        case 204:
                            JSONObject jSONObject4 = jSONArray.getJSONObject(i);
                            arrayList.add(jSONObject4.getString(m52) + C0005.m17(f28short, 553, 1, 2965) + jSONObject4.getString(C0011.m35(f28short, 550, 3, 895)));
                            i++;
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = 1771;
                                        break;
                                    case 54:
                                        break;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    String join = TextUtils.join(C0006.m18(f28short, 554, 1, 523), arrayList);
                    jSONObject.put(C0011.m35(f28short, 555, 13, 1510), C0008.m27(f28short, 568, 8, 2585));
                    jSONObject.put(C0003.m9(f28short, 576, 12, 373), join);
                    JSONArray jSONArray2 = new JSONArray();
                    jSONArray2.put(jSONObject);
                    jSONObject2.put(C0001.m3(f28short, 588, 4, 617), jSONArray2);
                    return jSONObject2.toString();
                }
            }
        } catch (Throwable th) {
            return "";
        }
    }

    public String homeContent(boolean z) {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(C0012.m37(f28short, 912, 5, 829), new JSONArray(C0009.m30(f28short, 592, 320, 943)));
            return jSONObject.toString();
        } catch (Throwable th) {
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:5:0x0048. Please report as an issue. */
    public String homeVideoContent() {
        try {
            String str = this.h + C0011.m35(f28short, 917, 74, 586);
            JSONObject jSONObject = new JSONObject(fP.oq(str, h(str)));
            JSONArray jSONArray = new JSONArray();
            JSONArray jSONArray2 = jSONObject.getJSONArray(C0004.m12(f28short, 991, 4, 2500));
            int i = 0;
            while (true) {
                int length = jSONArray2.length();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < length ? 1709 : 1678;
                        case 204:
                            JSONObject jSONObject2 = jSONArray2.getJSONObject(i);
                            JSONObject jSONObject3 = new JSONObject();
                            jSONObject3.put(C0000.m1(f28short, 995, 6, 2924), jSONObject2.getString(C0011.m35(f28short, 1001, 2, 1315)));
                            jSONObject3.put(C0008.m27(f28short, 1003, 8, 1820), jSONObject2.getString(C0018.m56(f28short, 1011, 5, 3075)));
                            jSONObject3.put(C0013.m41(f28short, 1016, 7, 2843), jSONObject2.getString(C0009.m30(f28short, 1023, 4, 1611)));
                            jSONObject3.put(C0002.m6(f28short, 1027, 11, 1138), jSONObject2.getString(C0013.m41(f28short, 1038, 5, 1672)));
                            jSONArray.put(jSONObject3);
                            i++;
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = 1771;
                                        break;
                                    case 54:
                                        break;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    JSONObject jSONObject4 = new JSONObject();
                    jSONObject4.put(C0000.m1(f28short, 1043, 4, 547), jSONArray);
                    return jSONObject4.toString();
                }
            }
        } catch (Throwable th) {
            return "";
        }
    }

    public void init(Context context, String str) {
        super.init(context, str);
        this.V0 = str;
        PushAgent pushAgent = new PushAgent();
        this.j = pushAgent;
        pushAgent.init(context);
        int m28 = C0008.m28();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m28 >= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Integer.decode(C0005.m15("RrHgj2HRbc871")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    public String playerContent(String str, String str2, List<String> list) {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(C0014.m43(f28short, 1047, 5, 2366), 0);
            jSONObject.put(C0012.m37(f28short, 1052, 7, 2625), "");
            jSONObject.put(C0011.m35(f28short, 1059, 3, 2390), str2);
            return jSONObject.toString();
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:5:0x0062. Please report as an issue. */
    public String searchContent(String str, boolean z) {
        try {
            JSONObject jSONObject = new JSONObject();
            String str2 = this.h + C0017.m52(f28short, 1062, 22, 2678) + URLEncoder.encode(str) + C0005.m17(f28short, 1084, 7, 2776);
            String oq = fP.oq(str2, h(str2));
            JSONArray jSONArray = new JSONArray();
            JSONArray jSONArray2 = new JSONObject(oq).getJSONArray(C0011.m35(f28short, 1091, 4, 2923));
            int i = 0;
            while (true) {
                int length = jSONArray2.length();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < length ? 1709 : 1678;
                        case 204:
                            JSONObject jSONObject2 = jSONArray2.getJSONObject(i);
                            JSONObject jSONObject3 = new JSONObject();
                            jSONObject3.put(C0012.m37(f28short, 1095, 6, 1790), jSONObject2.getString(C0000.m1(f28short, 1101, 2, 1463)));
                            jSONObject3.put(C0000.m1(f28short, 1103, 8, 1469), jSONObject2.getString(C0012.m37(f28short, 1111, 5, 3053)));
                            jSONObject3.put(C0015.m47(f28short, 1116, 7, 1551), jSONObject2.getString(C0015.m47(f28short, 1123, 9, 1377)));
                            jSONObject3.put(C0009.m30(f28short, 1132, 11, 3013), jSONObject2.getString(C0005.m17(f28short, 1143, 4, 2725)));
                            jSONArray.put(jSONObject3);
                            i++;
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = 1771;
                                        break;
                                    case 54:
                                        break;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    jSONObject.put(C0006.m18(f28short, 1147, 4, 2073), jSONArray);
                    return jSONObject.toString();
                }
            }
        } catch (Throwable th) {
            return "";
        }
    }
}
